package com.bwie.doctorclient.mapper;

import com.bwie.doctorclient.domain.po.SymptomPO;
import com.bwie.doctorclient.domain.vo.CommonlyDrugVO;
import com.bwie.doctorclient.domain.vo.DepartmentVO;
import com.bwie.doctorclient.domain.vo.DrugVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrugMapper {
    /**
     * 获取常用药品列表
     * @return
     */
    List<CommonlyDrugVO> getCommonlyDrugList(@Param("doctorId") Long userid);

    /**
     * 删除常用药品
     * @param id
     * @return
     */
    void deleteCommonlyDrug(@Param("drugId") Long id, @Param("doctorId") Long userid);

    void addCommonlyDrug(@Param("drugId") Long drugId, @Param("doctorId") Long userid);

    /**
     * 获取所有科室
     * @return
     */
    List<DepartmentVO> getDepartmentList();

    /**
     * 获取各个科室下的症状
     * @param id
     * @return
     */
    List<SymptomPO> getSymptomList(Long id);

    /**
     * 根据科室症状id获取药品信息
     * @param
     * @return
     */
    List<CommonlyDrugVO> getDrugByDepartmentSymptomId(@Param("departmentId") Long departmentId, @Param("symptomId") Long symptomId);

    /**
     * 获取药品详情
     * @param id
     * @return
     */
    DrugVO getDrugDetail(Long id);
}
